<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/newbase.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <script src="__STATIC__/password/md5.js"></script>
    <script src="__STATIC__/password/passwordBox.min.js"></script>
    <script>

        $(function () {
            /**
             * init传入参数依次是：正确密码(传空时不对比输入是否正确),密码键盘背景，标题，副标题
             * */

            PwdBox.init('', "/password/pwd_keyboard.png", '请输入新的支付密码', '请输入新的支付密码');
            /**
             *res格式：{status:'true或false',password:'用户输入的密码'}
             *
             */
            PwdBox.show(function (res) {
                var pwd = hex_md5(hex_md5(res.password));

                $.ajax({
                    url:'',
                    dataType: 'json',
                    type:'post',
                    data:{'pwd':pwd},
                    async: false,
                    success:function () {
                        mh_dialogShow('mh_success','重置成功',2,true,"{:url('user_info/my_wallet')}");
                    }

                })
            });
            })
    </script>
    <title>重置支付密码</title>
</head>
<body>
<div class="wrap-pass">
    <div class="header">
        <p>重置支付密码</p>
        <a href="{:url('mobile/pay_pass/edit')}"><img src="__STATIC__/img/back.png" class="back"></a>
    </div>

</div>
{include file="public/src" /}
</body>
</html>